# https://www.bilibili.com/video/BV1W7411G7wP?p=15&spm_id_from=pageDriver&vd_source=8bd7b24b38e3e12c558d839b352b32f4
import pandas as pd
import matplotlib.pyplot as plt

pd.options.display.max_columns = 777

homeData = pd.read_excel('../resources/input_py_tools/014/home_data.xlsx')
print(homeData)

# 面积的直方图
#homeData.sqft_living.plot.hist()# 默认桶
homeData.sqft_living.plot.hist(bins=100)
plt.xticks(range(0, max(homeData.sqft_living), 500), fontsize=8, rotation=90)
plt.show()

# 还可以看一个报价的直方图（略）